﻿namespace Digitalmes.ApiService.Models;

/// <summary>
/// 画布配置信息
/// </summary>
public sealed class CanvasConfig
{
    /// <summary>
    /// 是否是 debug 模式
    /// </summary>
    public bool IsDebug { get; set; }

    /// <summary>
    /// 默认显示模板
    /// </summary>
    public string DefaultTemplate { get; set; }

    /// <summary>
    /// 画布配置项集合
    /// </summary>
    public List<CanvasConfigOptions> Options { get; set; }
}

/// <summary>
/// 画布配置项
/// </summary>
public sealed class CanvasConfigOptions
{
    /// <summary>
    /// 选项编号
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// 选项名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 配置菜单项
    /// </summary>
    public string[] Menus { get; set; }
}
